using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace UniversalAdmin.Domain.Entities;

[Table("role_menus")]
public class RoleMenu
{
  [Key]
  [Column("role_id")]
  public int RoleId { get; set; }

  [ForeignKey("RoleId")]
  public virtual Role? Role { get; set; }

  [Key]
  [Column("menu_id")]
  public int MenuId { get; set; }

  [ForeignKey("MenuId")]
  public virtual Menu? Menu { get; set; }
}